package cate.common.table.activity.rebate.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.rebate.row.RebateRow;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class RebateSheet extends ESheet<RebateRow> {
    public Map<Integer, List<RebateRow>> groupMap;
    @Override
    public String getSheetName() {
        return "积天豪礼奖励";
    }

    @Override
    protected void onLoaded() {
        groupMap = getList().stream().collect(Collectors.groupingBy(row -> row.group));
    }
}
